﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="KetQuaTimKiemMauBieu.aspx.cs" Inherits="QLVB_User_KetQuaTimKiemMauBieu" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
        }
        .style2
        {
        }
        .style3
        {
            width: 1000px;
            height: 80px;
        }
        .style4
        {
            width: 200px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table style="width: 1008px;">
            <tr>
                <td colspan="2" style="text-align: left">
                    <img alt="" class="style3" src="../../HinhAnh/Header.JPG" /></td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center">
            <asp:Label ID="lblTitle" runat="server" Text="KẾT QUẢ TÌM KIẾM MẪU BIỂU"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    <asp:RadioButton ID="rdoTimTheoNoiDungMauBieu" runat="server" Checked="True" 
                        GroupName="GroupName1" Text="Tìm theo nội dung mẫu biểu" />
                </td>
                <td>
                    <asp:TextBox ID="txtTimTheoNoiDungMauBieu" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    <asp:RadioButton ID="rdoTimTheoTenFileMauBieu" runat="server" 
                        GroupName="GroupName1" Text="Tìm theo tên file mẫu biểu" />
                </td>
                <td>
                    <asp:TextBox ID="txtTimTheoTenFileMauBieu" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btnTimKiem" runat="server" onclick="btnTimKiem_Click" 
                        Text="Tìm kiếm" Width="100px" />
                </td>
            </tr>
            <tr>
                <td class="style2" colspan="2">
                    <asp:Button ID="btnLoadTatCaMauBieu" runat="server" 
                        onclick="btnLoadTatCaMauBieu_Click" Text="Load tất cả mẫu biểu" />
                </td>
            </tr>
            <tr>
                <td class="style1" colspan="2">
                    <asp:GridView ID="gvDanhSachMauBieu" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" 
                        BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                        onpageindexchanging="gvDanhSachMauBieu_PageIndexChanging" Width="100%">
                        <Columns>
                            <asp:BoundField DataField="NoiDungMauBieu" HeaderText="Nội dung" />
                            <asp:BoundField DataField="TenDonViSoanThao" HeaderText="Nơi soạn" />
                            <asp:BoundField DataField="MaNguoiKiemSoat" HeaderText="Người cập nhật" />
                            <asp:BoundField DataField="NgayKiemSoat" HeaderText="Ngày cập nhật" />
                            <asp:HyperLinkField DataNavigateUrlFields="TenFileMauBieu" 
                                DataNavigateUrlFormatString="~/QLVB/VanBanLuuTru/MauBieu/{0}" 
                                DataTextField="TenFileMauBieu" HeaderText="File mẫu biểu" />
                            <asp:HyperLinkField DataNavigateUrlFields="TenFileCongVan" 
                                DataNavigateUrlFormatString="~/QLVB/VanBanLuuTru/MauBieu/{0}" 
                                DataTextField="TenFileCongVan" HeaderText="File công văn" />
                        </Columns>
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <SortedAscendingCellStyle BackColor="#EDF6F6" />
                        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                        <SortedDescendingCellStyle BackColor="#D6DFDF" />
                        <SortedDescendingHeaderStyle BackColor="#002876" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
